

<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.springframework.security.core.Authentication"%>
<%@page import="org.springframework.security.web.access.AccessDeniedHandlerImpl"%>
<h1>Sorry, access is denied</h1>


<p>
<%= request.getAttributeNames()%>

<p>

<%		Authentication auth = SecurityContextHolder.getContext().getAuthentication();
		
		if (auth != null) { %>
			auth.getAuthorities() => <%=auth.getAuthorities()%>
			<br>
			auth.getPrincipal() => <%=auth.getPrincipal()%>
			<br>
			auth.getCredentials() => <%=auth.getCredentials()%>
			<br>
			auth.getDetails() => <%=auth.getDetails()%>
			<br>
			Authentication object as a String: <%= auth.toString() %><BR><BR>
<%      } %>
